<?php
require_once 'header.php';
require_once 'admin_comm.php';

$id = request('id', false, true);
$num = request('num');
$cookuid = request('cookuid', false, true, false, 0);

$module_list = admin_fun_module_all_level();

$list = $module_list[$id];
?>
		<script type="text/javascript" charset="utf-8">
			loader.file({
				skincss:['left_nav'],
				js:['main']
			});

			window.onload = function() {
				<?php
				if($num){
					?>
				main_object.left_menu_init({
					own:$('#menu'),
					num:'<?php echo $num;?>'
				});
					<?php
				}else{
					?>
				main_object.left_menu_init({
					own:$('#menu')
				});
					<?php
				}
				?>
			}
		</script>
	</head>

	<body>
		<div class="left_nav">
			<div class="left_nav_box" id="menu" style="width: 150px;">
			<?php
			if($list['child']){
				foreach($list['child'] as $k=>$v){
					if(!$array_module[$v['id']]){
						continue;
					}
			?>
			<div class="nav_frame_block hover"><a href="javascript:void(0);"><?php echo $v['content'];?></a></div>
				<?php
				if($v['child']){
				?>
				<ul class="sub_nav" id="m_<?php echo $v['id'];?>" style="display: none;">
					<ul>

				<?php
					foreach($v['child'] as $k2=>$v2){
						if(!$array_module[$v2['id']]){
							continue;
						}
						$tmp_url = strpos($v2['file'], '?') === false ? $v2['file'].'?cookuid='.$cookuid : $v2['file'].'&cookuid='.$cookuid;
				?>
						<li id="m_<?php echo $v2['id'];?>"><a href="/<?php echo $tmp_url;?>" target="_mainFrame"><?php echo $v2['content'];?></a></li>

				<?php
					}
				?>

					</ul>
				</ul>
				<?php
				}
				?>
			<?php
				}
			}
			?>

			</div>	
			
			
<style>
.fastmenu{ background-color:#fff; border:1px solid #dfdfdf; width:90%; padding:5%; float:left; border-radius:3px; margin-top:15px;}

.fastmenu ul{}	
.fastmenu ul li{    
  list-style-type: none;
    display: list-item;
    text-align: -webkit-match-parent;	
}		
.fastmenu ul li a{
	padding:2px 5px; color:#333; text-decoration:none;
	background-color:#fafafa; margin-bottom:3px; border-radius:3px; 
    font-size: 14px !important;
    line-height: 26px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    display: block;		
}
.fastmenu ul li a:hover{ background-color:#7e4a3b; color:#fff;}


</style>			
<div class="fastmenu">			
     <ul>
        <li><a href="/admin/admin_address_device_log" target="mainFrame">挖机装车</a></li>
        <li><a href="/admin/admin_address_time_log" target="mainFrame">计时模式</a></li>
        <li><a href="/admin/car_list" target="mainFrame">多路线运输</a></li>
        <li><a href="/admin/gasout" target="mainFrame">加油管理</a></li>
        <li><a href="/admin/gasin" target="mainFrame">进油管理</a></li>
        <li><a href="/admin/change_pwd" target="mainFrame">账号管理</a></li>
     <?php if($cookie['group']!=12){?>     
        <li><a href="/admin/admin_device_add" target="mainFrame">添加设备</a></li>     
        <li><a href="/admin/admin_project_list" target="mainFrame">绑定(修改)设备</a></li>
        <li><a href="/admin/car_set" target="mainFrame">参数设置</a></li>                                  
     <?php } ?>        
     </ul>                 
  </table>			
</div>				
			
			
					
		</div>
		
		
		
	</body>
</html>
